package com.wyvoid.forum.dao.hibernate;

import java.util.List;

import com.wyvoid.forum.domain.UserFace;
import com.wyvoid.forum.dao.IUserFaceDAO;
import com.wyvoid.core.persistent.hibernate.HibernateDAO;

/**
 * 用户表情Hibernate数据处理实现
 *
 * @author wyvoid
 * @version $Revision: 1.1 $ $Date: 2006/06/04 17:12:55 $
 * @link www.wyvoid.com
 */
public class UserFaceDAO extends HibernateDAO<UserFace> implements IUserFaceDAO {

    /**
     * 根据类别查询用户头像集合
     *
     * @param type 头像类别
     * @return List 用户头像集合
     */
    public List findFaces(int type) {
        return doQueryList("from UserFace as f where f.type=?", true,type);
	}
}
